<template>
    <div class="breadItemtext" @click="goto">
        <slot></slot>
    </div>
</template>
<script lang="ts" setup>
import { router } from '../router';

const {to} = defineProps({
    to: {
        type: String,
        default: ''
    }
})
const goto = () => {
    if (to) {
        router.push(to)
    }
}
</script>
<style lang="scss" scoped>

</style>